package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TOrder1;
import com.tmeone.erpone.entity.TProductionLine;
import com.tmeone.erpone.mapper.ScDscMapper;
import com.tmeone.erpone.service.IScDscService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScDscServiceImpl extends ServiceImpl<ScDscMapper, TOrder1> implements IScDscService {

    @Autowired
    private ScDscMapper scDscMapper;
    @Override
    public IPage<TOrder1> selectPage(IPage<TOrder1> page) {
        return scDscMapper.selectPage(page);
    }

    @Override
    public List<TProductionLine> selectProductLine() {
        return scDscMapper.selectProductLine();
    }

    @Override
    public List<TOrder1> selectPrinter() {
        return scDscMapper.selectPrinter();
    }

    @Override
    public List<TOrder1> selectStatus() {
        return scDscMapper.selectStatus();
    }

    @Override
    public IPage<TOrder1> selectPageById(IPage<TOrder1> page, String orderId, String productStatus) {
        return scDscMapper.selectPageById(page,orderId,productStatus);
    }

    @Override
    public TOrder1 updateLaserCode(String laserCode, String orderId) {
        return scDscMapper.updateLaserCode(laserCode,orderId);
    }


}
